package demo9;

public class  demo9_1{
    public static String ArrayParseString(int arr[]){
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < arr.length; i++) {
            stringBuffer.append(arr[i] + " ");
        }
        String str = stringBuffer.toString();
        return str;
    }

    public static void main(String[] args) {
        int[] a = {1, 2, 3, 7, 5, 6, 7};
        String str = ArrayParseString(a);
        System.out.println(str);
    }

}
